﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Cloud.Core.Model.Promotion
{

    public class LuckyDrawCoupon
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public ulong Id { get; set; }
        /// <summary>
        /// 推广表id
        /// </summary>

        public ulong PromotionsId { get; set; }


        public string CouponName { get; set; }
        /// <summary>
        /// 图片
        /// </summary>

        public string CouponImgs { get; set; }
        /// <summary>
        /// 个数
        /// </summary>

        public int CouponCount { get; set; }
        /// <summary>
        /// 金额
        /// </summary>

        public decimal CouponAmount { get; set; }

        /// <summary>
        /// 开奖时间
        /// </summary>
        public DateTime? LuckyDrawDate { get; set; }

        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime? ExpirationDate { get; set; }

        public DateTime? IsrtDt
        {
            get; set;
        }

        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? UpdtDt
        {
            get; set;
        }
        public LuckyDrawCouponType LuckyDrawCouponType { get; set; }
        

    }

    public enum LuckyDrawCouponType
    {

        CashCoupon = 1,
        RedEnvelope = 2,
        GiftCoupon = 3,
        DiscountCoupon = 4
    }
}
